import React from "react";
import { Link, Switch } from "react-router-dom";

const App = (props) => {
  return (
    <>
      <h2>app项目</h2>
      <ul>
        <li>
          <Link to="/home">首页</Link>
        </li>
        <li>
          <Link to="/about">关于</Link>
        </li>
      </ul>

      <hr />

      <Switch>{props.children}</Switch>
    </>
  );
};

export default App;
